<html>
	<head>
		<script src="../../libs/LibScriptLoader.js" type="text/javascript" language="javascript" charset="utf-8"></script>
	</head>
	<body>
		<script>
			var sendTest = function(method) {
				UrlLoaderContext.loadData(method, // method 
										 	"index.php",  // url (can be full or relative
											{ msg: 'test' },  // params
											function(data) { // complete handler
												console.log('load complete '+data); 
											},
											function(text) {  // error handler
												console.log('load failed '+text);
											});
			};

			Lib.require("flashurlloader").onloadComplete = function() {
				UrlLoaderContext.init(function() { // initialize & wait for swf full load using swfobject
						sendTest("POST");
						sendTest("GET");
				});
			}
		</script>
	</body>
</html>
